<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/03-form/" method="post">
    {% csrf_token %}
    <!-- 循环遍历 form -->
    {% for field in form %}
        <p>
            {{ field.label }}:{{ field }}
        </p>
    {% endfor %}
{#    {{ form.as_p }}#}

    <!--自动解析:as_ul-->
{#    <ol>#}
{#    {{ form.as_ul }}#}
{#    </ol>#}
    <!--as_table-->
{#    <table>#}
{#    {{ form.as_table}}#}
{#    </table>#}
    <p>
        <input type="submit" value="提交">
    </p>
</form>
</body>
</html>